﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterBackEnd.Master" AutoEventWireup="true" CodeFile="ConfigGame.aspx.cs" Inherits="Pages_Game_ConfigGame" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        .content_info_left
        {
            width: 160px;
        }
    </style>
    <script src="/Js/Pages/Game/ConfigGame.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            Pages_Game_ConfigGame.documentReady();
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="Server">
    <div class="container_data">
        <div class="header_container">
            <span class="container_text">Cấu hình game</span>
            <div class="adminBox_Control">
                <div class="action" id="btnUpdate" style="background: url(/images/icon_save.gif) no-repeat scroll 3px 3px #C1E4FF;">
                    Cập nhật
                </div>
            </div>
            <div class="clear">
            </div>
        </div>
        <div class="content padding0">
            <div class="form form_3cols">
                <div class="content_info">
                    <ul>
                        <li class="content_info_left">Chọn Game:</li>
                        <li class="content_info_right">
                            <select id="ddlGame" onchange="Pages_Game_ConfigGame.documentReady()">
                                <%foreach (var item in lstGame)
                                  { %>
                                <option value="<%=item.Id %>"><%=item.Name %></option>
                                <%} %>
                            </select>
                        </li>
                        <div class="clear">
                        </div>
                    </ul>
                </div>
            </div>
            <div style="clear: both"></div>
            <div style="float: left">
                <div class="form form_3cols" style="float: left">
                    <div class="content_info">
                        <ul>
                            <li class="content_info_left">Giá vé min:</li>
                            <li class="content_info_right">
                                <input type="text" id="txtMinPrice" class="formcart2 changeEvent" onkeydown="return COMMON.validateDigitQuantity(event)" />
                            </li>
                            <div class="clear">
                            </div>
                        </ul>
                    </div>
                    <div class="content_info">
                        <ul>
                            <li class="content_info_left">Giá vé max:</li>
                            <li class="content_info_right">
                                <input type="text" id="txtMaxPrice" class="formcart2 changeEvent" onkeydown="return COMMON.validateDigitQuantity(event)" />
                            </li>
                            <div class="clear">
                            </div>
                        </ul>
                    </div>

                </div>
                <div class="form form_3cols" style="float: left">
                    <div class="content_info">
                        <ul>
                            <li class="content_info_left">Tỷ lệ trả thưởng yêu cầu:</li>
                            <li class="content_info_right">
                                <input type="text" id="txtRate" class="formcart2 changeEvent" name="" style="float: left; margin-right: 4px" onchange="Pages_Game_ConfigGame.bindRate()" onkeydown="return COMMON.validateDigitQuantity(event)" />
                                %
                            <div style="clear: both"></div>
                            </li>
                            <div class="clear">
                            </div>
                        </ul>
                    </div>
                    <div class="content_info">
                        <ul>
                            <li class="content_info_left">Tỷ lệ trúng:</li>
                            <li class="content_info_right">
                                <input type="text" id="txtRandomRate" class="formcart2 changeEvent" name="" style="float: left; margin-right: 4px" onkeydown="return COMMON.validateDigitQuantity(event)" />
                                %
                            <div style="clear: both"></div>
                            </li>
                            <div class="clear">
                            </div>
                        </ul>
                    </div>
                </div>

                <div style="clear: both; border-top: solid 1px #CCC"></div>

                <div class="form form_3cols" style="float: left; border-right: solid 1px #EEE">
                    <div class="content_info">
                        <ul>
                            <li class="content_info_left">StartLife:</li>
                            <li class="content_info_right">
                                <input type="text" id="txtStartExtraLife" class="formcart2 changeEvent" name="" style="float: left; margin-right: 4px" onkeydown="return COMMON.validateDigit(event)" />
                                </li>
                            <div class="clear">
                            </div>
                        </ul>
                    </div>
                    <div class="content_info">
                        <ul>
                            <li class="content_info_left">ExtraLife:</li>
                            <li class="content_info_right">
                                <input type="text" id="txtExtraLife" class="formcart2 changeEvent" name="" style="float: left; margin-right: 4px" onkeydown="return COMMON.validateDigit(event)" />
                                %</li>
                            <div class="clear">
                            </div>
                        </ul>
                    </div>
                    <div class="content_info">
                        <ul>
                            <li class="content_info_left">Maximum ExtraLife:</li>
                            <li class="content_info_right">
                                <input type="text" id="txtMaximumExtraLife" class="formcart2 changeEvent" name="" onkeydown="return COMMON.validateDigit(event)" /></li>
                            <div class="clear">
                            </div>
                        </ul>
                    </div>

                    <div class="content_info" style="margin-top: 25px">
                        <ul>
                            <li class="content_info_left">StartOutOf:</li>
                            <li class="content_info_right">
                                <input type="text" id="txtStartOutOf" class="formcart2 changeEvent" name="" style="float: left; margin-right: 4px" onkeydown="return COMMON.validateDigit(event)" />
                                </li>
                            <div class="clear">
                            </div>
                        </ul>
                    </div>
                    <div class="content_info">
                        <ul>
                            <li class="content_info_left">OutOf:</li>
                            <li class="content_info_right">
                                <input type="text" id="txtOutOf" class="formcart2 changeEvent" name="" style="float: left; margin-right: 4px" onkeydown="return COMMON.validateDigit(event)" />
                                %</li>
                            <div class="clear">
                            </div>
                        </ul>
                    </div>
                    <div class="content_info">
                        <ul>
                            <li class="content_info_left">Maximum OutOf:</li>
                            <li class="content_info_right">
                                <input type="text" id="txtMaximumOutOf" class="formcart2 changeEvent" name="" onkeydown="return COMMON.validateDigit(event)" /></li>
                            <div class="clear">
                            </div>
                        </ul>
                    </div>
                </div>
                <div class="form form_3cols" style="float: left;">
                    <div class="content_info">
                        <ul>
                            <li class="content_info_left">StartNudges:</li>
                            <li class="content_info_right">
                                <input type="text" id="txtStartNudges" class="formcart2 changeEvent" name="" style="float: left; margin-right: 4px" onkeydown="return COMMON.validateDigit(event)" />
                                </li>
                            <div class="clear">
                            </div>
                        </ul>
                    </div>
                    <div class="content_info">
                        <ul>
                            <li class="content_info_left">Nudges:</li>
                            <li class="content_info_right">
                                <input type="text" id="txtNudges" class="formcart2 changeEvent" name="" style="float: left; margin-right: 4px" onkeydown="return COMMON.validateDigit(event)" />
                                %</li>
                            <div class="clear">
                            </div>
                        </ul>
                    </div>
                    <div class="content_info">
                        <ul>
                            <li class="content_info_left">Maximum Nudges:</li>
                            <li class="content_info_right">
                                <input type="text" id="txtMaximumNudges" class="formcart2 changeEvent" name="" onkeydown="return COMMON.validateDigit(event)" /></li>
                            <div class="clear">
                            </div>
                        </ul>
                    </div>

                    <div class="content_info" style="margin-top: 25px;">
                        <ul>
                            <li class="content_info_left">StartFreeSpin:</li>
                            <li class="content_info_right">
                                <input type="text" id="txtStartFreeSpin" class="formcart2 changeEvent" name="" style="float: left; margin-right: 4px" onkeydown="return COMMON.validateDigit(event)" />
                                </li>
                            <div class="clear">
                            </div>
                        </ul>
                    </div>
                    <div class="content_info">
                        <ul>
                            <li class="content_info_left">FreeSpin:</li>
                            <li class="content_info_right">
                                <input type="text" id="txtFreeSpin" class="formcart2 changeEvent" name="" style="float: left; margin-right: 4px" onkeydown="return COMMON.validateDigit(event)" />
                                %</li>
                            <div class="clear">
                            </div>
                        </ul>
                    </div>
                    <div class="content_info">
                        <ul>
                            <li class="content_info_left">Maximum FreeSpin:</li>
                            <li class="content_info_right">
                                <input type="text" id="txtMaximumFreeSpin" class="formcart2 changeEvent" name="" onkeydown="return COMMON.validateDigit(event)" /></li>
                            <div class="clear">
                            </div>
                        </ul>
                    </div>
                </div>
            </div>
            <div class="form form_3cols">
                <table cellpadding="0" cellspacing="0">
                    <thead>
                        <tr class="tableheader">
                            <td style="width: 30px"></td>
                            <td>Xác suất<br />
                                về high</td>
                            <td>Xác suất<br />
                                về low</td>
                            <td style="background: url('/images/df_tbl_headercell_bg.gif') repeat-x">Tỷ lệ ăn<br />
                                khi chọn high</td>
                            <td style="background: url('/images/df_tbl_headercell_bg.gif') repeat-x">Tỷ lệ ăn<br />
                                khi chọn low</td>
                        </tr>
                    </thead>
                    <tbody id="tbyRate">
                    </tbody>
                </table>
            </div>
            <div class="clear">
            </div>




            <div class="clear">
            </div>
        </div>
    </div>
</asp:Content>

